package com.cqjtu.graduation.entity;

import java.util.Objects;

public class DinnerTableDO {
    private Integer dinnerTableId;
    private Integer dinnerTableStatus; //餐桌状态

    public Integer getDinnerTableId() {
        return dinnerTableId;
    }

    public void setDinnerTableId(Integer dinnerTableId) {
        this.dinnerTableId = dinnerTableId;
    }
    public void setDinnerTableId(String dinnerTableId) {
        this.dinnerTableId=Integer.parseInt(dinnerTableId);
    }

    public Integer getDinnerTableStatus() {
        return dinnerTableStatus;
    }

    public void setDinnerTableStatus(Integer dinnerTableStatus) {
        this.dinnerTableStatus = dinnerTableStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DinnerTableDO that = (DinnerTableDO) o;
        return dinnerTableId.equals(that.dinnerTableId) &&
                dinnerTableStatus.equals(that.dinnerTableStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(dinnerTableId, dinnerTableStatus);
    }

    @Override
    public String toString() {
        return "DinnerTable{" +
                "dinnerTableId=" + dinnerTableId +
                ", dinnerTableStatus=" + dinnerTableStatus +
                '}';
    }
}
